#list_availables_nodes=(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29)
list_availables_nodes=(21 22)
list_ensemble=(0)
Nensemble=${#list_ensemble[*]}
Nensemblem1=$(echo "$Nensemble - 1 " | bc -l )

for i in `seq 0 $Nensemblem1 `
do
#node_p=$(echo "${list_availables_nodes[2*$i]} " | bc -l )
#node_m=$(echo "${list_availables_nodes[2*$i+1]} " | bc -l )

#nodeprint_p=`printf %02d $node_p `
#nodeprint_m=`printf %02d $node_m `

#ssh node$nodeprint_p "sh /home/nucave/workdir/lattice/RENORMALIZATION/reno/NF4/Z2F/SCRIPTS/launch_Run_Nf4_Z2f.sh 210 ${list_ensemble[$i]} p 0"
#ssh node$nodeprint_m "sh /home/nucave/workdir/lattice/RENORMALIZATION/reno/NF4/Z2F/SCRIPTS/launch_Run_Nf4_Z2f.sh 210 ${list_ensemble[$i]} m 0"

node=$(echo "${list_availables_nodes[$i]} " | bc -l )
nodeprint=`printf %02d $node `

ssh node$nodeprint "sh /home/nucave/workdir/lattice/RENORMALIZATION/reno/NF4/Z2F/SCRIPTS/launch_Run_Nf4_Z2f.sh 210 ${list_ensemble[$i]} a 0"

done

